#include "StdAfx.h"
#include "ToolbarUI.h"
#include "BlueRenderEngineUI.h"
#include "ContainerUI.h"

CToolbarUI::CToolbarUI(void)
{
	SetInset(CStdSize(2, 2));
	SetPadding(2);
}

CToolbarUI::~CToolbarUI(void)
{
}

LPCTSTR CToolbarUI::GetClass() const
{
	return _T("ToolbarUI");
}

SIZE CToolbarUI::EstimateSize(SIZE /*szAvailable*/)
{
	return CStdSize(0, 10 + m_pManager->GetThemeFontInfo(UIFONT_CAPTION).tmHeight);
}

void CToolbarUI::DoPaint(HDC hDC, const RECT& rcPaint)
{
	CBlueRenderEngineUI::DoPaintPanel(hDC, m_pManager, m_rcItem);
	CContainerUI::DoPaint(hDC, rcPaint);
}
